﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dark_Core_Library.UniModules.Models
{
    /// <summary>
    /// 通用分页参数
    /// </summary>
    public class UniPaginationParam<TValue>
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int PageNum { set; get; }
        /// <summary>
        /// 每页数量
        /// </summary>
        public int PageSize { set; get; }

        /// <summary>
        /// 标签
        /// </summary>
        public string Tag { set; get; }

        /// <summary>
        /// 数据
        /// </summary>
        public TValue Value { set; get; }

        public UniPaginationParam(int pageNum,int pageSize,TValue value,string tag)
        {
            this.PageNum = pageNum;
            this.PageSize = pageSize;
            this.Value = value;
            this.Tag = tag;
        }
    }
}
